<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
    <title>咨询记录 - 购车咨询</title>
    <link rel="stylesheet" th:href="@{/css/style.css}" />
</head>
<body>
<div class="container">
    <h1>我的咨询记录</h1>
    <table class="table">
        <thead><tr><th>时间</th><th>预算</th><th>类型</th><th>场景</th><th>燃料</th><th>详情</th></tr></thead>
        <tbody>
        <tr th:each="c : ${items}">
            <td th:text="${#temporals.format(c.createdAt, 'yyyy-MM-dd HH:mm')}"></td>
            <td th:text="${c.budgetMin} + '-' + ${c.budgetMax}"></td>
            <td th:text="${c.bodyType}"></td>
            <td th:text="${c.scenes}"></td>
            <td th:text="${c.fuelType}"></td>
            <td><a th:href="@{'/consult/' + ${c.id}}">查看</a></td>
        </tr>
        </tbody>
    </table>
    <a href="/dashboard" class="btn">返回</a>
}</div>
</body>
</html>